package design_pattern.state.demo01;

import design_pattern.state.demo01.state.ConcreteStateA;

/**
 * @version 1.0.0
 * Created by cyd on 2022-06-02 17:51:19
 * @ClassName : design_pattern.state.demo01.Example03
 * @Description : 验证上下文对象中的状态，会随着执行方法而不停变化
 */
public class Main {
    public static void main(String[] args) {
        Context context = new Context(new ConcreteStateA());
        context.request();
        context.request();
        context.request();
        context.request();
    }
}
